package com.crane.oss.enums;

/**
 * 办学类型
 * 
 * @author tyh
 *
 */
public enum SchoolTypeEnum {
	
	school_type_public("1", "公办"),

	school_type_private("2", "民办");

	private String type;

	private String remark;

	private SchoolTypeEnum(String type, String remark) {
		this.type = type;
		this.remark = remark;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static String getRemark(String type) {
		for (SchoolTypeEnum schoolTypeEnum : SchoolTypeEnum.values()) {
			if (schoolTypeEnum.getType().equals(type)) {
				return schoolTypeEnum.getRemark();
			}
		}
		return "";
	}
}
